package com.workstudy.workstudy.service;

import java.util.List;

import com.workstudy.workstudy.domain.StatisticsRole;
import com.workstudy.workstudy.domain.WorkstudyAttendance;
import com.workstudy.workstudy.domain.WorkstudyAttendanceVo;

/**
 * 考勤Service接口
 * 
 * @author ws
 * @date 2021-03-28
 */
public interface IWorkstudyAttendanceService 
{
    /**
     * 查询考勤
     * 
     * @param attendanceId 考勤ID
     * @return 考勤
     */
    public WorkstudyAttendance selectWorkstudyAttendanceById(Long attendanceId);

    /**
     * 查询考勤列表
     * 
     * @param workstudyAttendance 考勤
     * @return 考勤集合
     */
    public List<WorkstudyAttendance> selectWorkstudyAttendanceList(WorkstudyAttendance workstudyAttendance);

    /**
     * 新增考勤
     * 
     * @param workstudyAttendance 考勤
     * @return 结果
     */
    public int insertWorkstudyAttendance(WorkstudyAttendance workstudyAttendance);

    /**
     * 修改考勤
     * 
     * @param workstudyAttendance 考勤
     * @return 结果
     */
    public int updateWorkstudyAttendance(WorkstudyAttendance workstudyAttendance);

    /**
     * 批量删除考勤
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteWorkstudyAttendanceByIds(String ids);

    /**
     * 删除考勤信息
     * 
     * @param attendanceId 考勤ID
     * @return 结果
     */
    public int deleteWorkstudyAttendanceById(Long attendanceId);

    public List<WorkstudyAttendance> selectWorkstudyAttendanceBywageId(Long wageId);

    public int selectWorkstudyAttendanceByCount(WorkstudyAttendance workstudyAttendance);

    //用人单位发布岗位的数量
    List<StatisticsRole> selectWorkstudyAttendanceByCountRoleId();

    public List<WorkstudyAttendance> selectWorkstudyAttendanceList2(WorkstudyAttendanceVo workstudyAttendanceVo);
}
